<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>闭包的指向</title>
</head>
<body>
<script>
    var a=5;
    function hex(){
        var a=6;
        return function(){
            console.log(this.a);
        }
    }
    hex()();

    
</script>
</body>
</html>